public class array2 {
    public static void main(String[] args) {
        int[]arr={1,2,3,4,5,6,7,8,9,6,5,4,5,2,1,4,5,2,3,5};
        /*for (int i=0;i<arr.length;i++){
            System.out.println(arr[i]);
        }*/
        for (int i = 0; i < arr.length; i++) {//数组名.fori
            System.out.println(arr[i]);

        }
    }
}
